package com.kingdee.eas.custom.hr.attendance.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;



public abstract class AbstractAttendanceDataCalcFacadeControllerBean extends AbstractBizControllerBean implements AttendanceDataCalcFacadeController
{
    protected AbstractAttendanceDataCalcFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("65E59328");
    }

    public void generateAttendanceReviewTable(Context ctx) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("17c17757-081d-4e52-9156-250c233429cb"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _generateAttendanceReviewTable(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _generateAttendanceReviewTable(Context ctx) throws BOSException, EASBizException
    {    	
        return;
    }

    public void generateAttendanceDataMonthTable(Context ctx) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a8fe3e8d-8143-40d5-a60c-2dbe414f8d51"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _generateAttendanceDataMonthTable(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _generateAttendanceDataMonthTable(Context ctx) throws BOSException, EASBizException
    {    	
        return;
    }

    public void queryNewPerson(Context ctx) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("106d4719-d94e-4b5f-8843-70a57af24a1e"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _queryNewPerson(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _queryNewPerson(Context ctx) throws BOSException, EASBizException
    {    	
        return;
    }

    public void deleteAttendanceRecord(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7d15cfdf-4039-4f7e-bb0b-bb55e0ea2b44"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _deleteAttendanceRecord(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _deleteAttendanceRecord(Context ctx) throws BOSException
    {    	
        return;
    }

    public void deleteAttendanceRecord(Context ctx, String period) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a582c3de-c7e9-476f-a9d7-7b27a2195cae"), new Object[]{ctx, period});
            invokeServiceBefore(svcCtx);
            _deleteAttendanceRecord(ctx, period);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _deleteAttendanceRecord(Context ctx, String period) throws BOSException
    {    	
        return;
    }

    public void deleteBefThreeMonthAttendanceDate(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7cc5441b-5dbc-4da5-adbe-204ae6a562d0"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            _deleteBefThreeMonthAttendanceDate(ctx);
            invokeServiceAfter(svcCtx);
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected void _deleteBefThreeMonthAttendanceDate(Context ctx) throws BOSException
    {    	
        return;
    }

}